home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
examples
/
projector.ray
< prev
next >
Wrap
Text File
|
1994-08-09
|
854b
|
41 lines
/*
* Sample program which uses a "projector" light source
* Written by Greg Spencer.
*
* Obviously, this requires an image to project. I used the ever-popular
* mandrill, but you can use what you want.
*
* This is a simple scene, which basically projects the image over a ball
* sitting on a plane.
*/
#ifndef IMAGEFILE
#define IMAGEFILE mandrill.rle
#endif
background .1 .1 .1
eyep 0 0 -40
lookp 0 0 0
up 0 1 0
fov 60
report verbose
screen 300 300
surface white ambient 0.1 0.1 0.1
diffuse 1.0 1.0 1.0
specular 0.4 0.4 0.4
specpow 10
light 1.0 projector IMAGEFILE tile 1 1 /* options 'tile' and 'smooth'
are allowed here */
0 10 -30 /* from */
0 0 0 /* to */
1 1 0 /* up (u): v=dirXu */
60 /* u angle */
60 /* v angle */
false /* Don't use R^2 falloff in intensity */
plane white 0 0 0 0 0 -1
sphere white 5 0 0 -10